<?php
include("./config.php");
function logout(){  
  unset($_SESSION['user_info']);  
  if(!empty($_COOKIE['userid']) || !empty($_COOKIE['password'])){  
    setcookie("userid", null, time()-3600*24*365);  
    setcookie("password", null, time()-3600*24*365);  
  }  
}

logout();

header('location: index.php');
?>
